package com.onesports.intelligent.k12.polarlight.domain.dto.course;

import com.onesports.framework.kit.common.valid.NotEmpty;
import com.onesports.framework.kit.common.valid.Range;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.checkerframework.common.value.qual.MinLen;

import javax.validation.constraints.Max;
import java.io.Serializable;
import java.util.Date;


/**
 * 拼班规则
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Data
@ApiModel(value = "拼班规则")
public class ClassMergeRuleDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id 添加时传空,修改时必传")
    private String id;


    @ApiModelProperty(value = "拼班类型名称")
    @NotEmpty(message = "拼班类型名称不能为空")
    private String typeName;


    @ApiModelProperty(value = "最低人数要求")
    @NotEmpty(message = "最低人数要求不能为空")
    @Range(min = 1,max = 99,message = "最低人数要求大于0小于100")
    private Integer minNum;

    @ApiModelProperty(value = "人数上限")
    @NotEmpty(message = "人数上限不能为空")
    @Range(min = 1,max = 99,message = "人数上限要求大于0小于100")
    private Integer maxNum;


}
